package scala

object Demo{
  def main(args: Array[String]): Unit = {
    val name = "hs"
    println(s"helle $name")
    val stu = Stu()
    println(s"i call ys,he is say\t${stu.sayHs("you are gold")}")
  }
}
case class Stu(name: String = "ys", age: Int = 18) {
  def sayHs(word: String): String = {
    f"i am $age%.3f\tyears\told\tand\t$word"
  }
}
